<?php

class Adept_Message {
	
	const WARNING = 1;
	const ERROR = 2;
	const INFORM = 3;
	const HINT = 4;
	
	protected $type;
	protected $title;

 	public function __construct($title, $type = self::INFORM) {
 		$this->title = $title;
 		$this->type = $type;
 	}	

 	public function getType() {
 	  return $this->type;
 	}
 	
 	public function setType($type) {
 	  $this->type = $type;
 	}
 	
 	public function getTitle() {
 	  return $this->title;
 	}
 	
 	public function setTitle($title) {
 	  $this->title = $title;
 	}
 	 	
}
